package com.yuandian.management.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuandian.api.business_monitor.po.SearchParams;
import com.yuandian.api.customer_perception.po.OperatorOverviewParams;
import com.yuandian.api.management.entity.ConfBusinessHall;
import com.yuandian.bpm.common.data.datascope.BpmBaseMapper;
import com.yuandian.management.vo.SearchOptionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 营业厅配置表-Mapper接口
 * @author zfsn
 * @date 2023-3-28
 */
@Mapper
public interface ConfBusinessHallMapper extends BpmBaseMapper<ConfBusinessHall> {


	/**
	 * 分页查询
	 *
	 * @param confBusinessHall 筛选条件
	 * @return 通用返回对象
	 */
	Page<ConfBusinessHall> listPage(Page<ConfBusinessHall> tPage, @Param("params") ConfBusinessHall confBusinessHall);

	/**
	 * 指定地区下的营业厅
	 * @param searchParams 主键
	 * @return 通用返回对象
	 */
    List<Map<String, String>> getBusinessHall(@Param("params") SearchParams searchParams);

	//查出所有正确格式的省市名组合,并放入集合
    List<ConfBusinessHall> queryRegionAndAreaId();

	//对营业厅编号进行去重处理
	ConfBusinessHall selectByNum(String num);

	/**
	 * 查询指定地区下的营业厅
	 * @param params 请求参数
	 * @return 查询指定地区下的营业厅列表
	 */
	List<SearchOptionVo> queryBusinessHall(@Param("params") OperatorOverviewParams params);

}
